package com.yeshine.opendata.dao;

import com.yeshine.opendata.core.IDao;
import com.yeshine.opendata.entity.Org;
import org.apache.ibatis.annotations.Param;

/**
 * Created by taohj on 2014/6/28.
 */
public interface IOrgDao extends IDao<Org> {

    int audit(@Param("orgs") Integer[] orgs, @Param("status") Integer status);

    int addMember(@Param("org") Integer org, @Param("users") Integer[] users, @Param("role") Integer role);

    int updateMember(@Param("org") Integer org, @Param("users") Integer[] users, @Param("role") Integer role);

    int deleteMember(@Param("org") Integer org, @Param("users") Integer[] users);
}
